function dog() {
    this.eat = function () {
        return 10;
    }
}

//dog.prototype = new animal();
//dog.prototype.eat = function () {
//    return 10;
//}